/**
 * utility functions 
 */
var xmlHttpRequest;
function showAllItems()
{
    //create XMLHttpRequest object
    xmlHttpRequest = (window.XMLHttpRequest) ? 
new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP");

    //If the browser doesn't support Ajax, exit now
    if (xmlHttpRequest == null)
    	return;

    //Initiate the XMLHttpRequest object
    xmlHttpRequest.open("GET", "show_all_items.php", true);

    //Setup the callback function
    xmlHttpRequest.onreadystatechange = showAllItemsStateChange;

    //Send the Ajax request to the server with the GET data
    xmlHttpRequest.send(null);
}
function showAllItemsStateChange()
{
    if(xmlHttpRequest.readyState == 4)
    {
	document.getElementById('mainbar').innerHTML=xmlHttpRequest.responseText;
    }
} 